package com.cnkvha.trackcontestmgmt.contest;

import java.awt.*;

public enum ContestState {

    STANDBY("等待中", Color.RED), // 主控未准备好
    WAITING("等待发令", Color.YELLOW),
    TRACKING("比赛进行中", Color.GREEN),
    FINALIZING("人工校对中", Color.CYAN),
    FINISHED("已出结果", new Color(0, 80, 200));

    private final String readable_name;
    private final Color color;

    ContestState(String readable_name, Color color) {
        this.readable_name = readable_name;
        this.color = color;
    }

    public String getReadableName() {
        return readable_name;
    }

    public Color getIndicatorColor() {
        return color;
    }
}
